package com.example.unveil_the_leader.mapper;

import com.example.unveil_the_leader.entity.Project;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author XCT
* @description 针对表【project】的数据库操作Mapper
* @createDate 2024-01-26 15:58:16
* @Entity com.example.unveil_the_leader.entity.Project
*/
@Mapper
public interface ProjectMapper extends BaseMapper<Project> {

    //项目申请
    void addProject(Project project);

    //项目内容修改
    void updateProject(Project project);

    //项目撤回（用户和管理员均可撤回）
    void deleteProject(int id);

    //查看项目内容
    //根据项目名称查看
    Project getMsgByName(@Param("projectName") String projectName);

    //根据项目类型查看
    Project getMsgByClass(@Param("projectClass") String projectClass);


}




